﻿<%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage<Comissoes.Models.FORNECEDORES>" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <%= ViewData["scripts"] %>
    <script type="text/javascript" src="../../Scripts/plugins/jquery-googlemaps/jquery.jmap-r72.js"></script>
    <script type="text/javascript" src="http://maps.google.com/maps?file=api&amp;v=2&amp;key=<%= System.Configuration.ConfigurationSettings.AppSettings["GoogleMapKey"] %>"></script>
    <!-- JS Custom -->
    <script type="text/javascript" src="../../Scripts/cadastros/pessoas.js"></script>
    <script type="text/javascript" src="../../Scripts/cadastros/enderecos.js"></script>
</head>
<body>
    <div class="cabecalho ui-state-highlight">
        <span class="icodtl" />
        <span class="txt">
            <%= Html.Encode("Detalhes da Loja") %>
        </span>
    </div>
    <fieldset class="container transparent">
        <label class="input80">
            <button type="button" class="documentcommand" onclick="loadOption('/Fornecedores/Edit', true);">Nova</button>
        </label>
        <label class="input80">
            <button class="pencilcommand" type="button" onclick="Edit('Fornecedores', 'COD_FORN', true)">Editar</button>
        </label>
        <label class="input80">
            <button class="listcommand" type="button" onclick="List('Fornecedores', true)">Retornar</button>
        </label>
        <label class="input80">
            <button class="trashcommand" type="button" onclick="deleteDialog('fornecedor', 'Fornecedores', <%= Html.Encode(Model.COD_FORN) %>)">Excluir</button>
        </label>
    </fieldset>
    <fieldset class="resizable container field580 border ui-widget-content ui-corner-all">
        <fieldset class="container field560 transparent">
            <%= Html.Hidden("COD_FORN", Model.COD_FORN) %>

            <%= Html.Label("for80", "Código:") %>
            <%= Html.Label("for100 ui-state-default right", Html.Encode(Model.COD_FORN)) %>
            
            <%= Html.Label("ATIVO_FORN", "for40 right", "Ativa") %>
            <%= Html.LabelInput(Html.CheckBox("ATIVO_FORN", Model.ATIVO_FORN == "A", new { disabled = true }), "Check") %>

            <% Html.RenderAction("Details", "Pessoas", Model.PESSOAS); %>
    </fieldset>
</body>
</html>
